package com.hyst.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.hyst.model.UserViewModel;
import com.hyst.repository.UserView_Repository;

@Controller
public class DocController {

	@GetMapping("docs")
	String getDocs() {
		return "docs";
	}

	@GetMapping("/")
	String home() {
		return "satelliteHomepage";
	}

	@GetMapping("doc/home")
	String docIndex() {
		return "index";
	}

	@GetMapping("qualityAnalysis")
	String userAnalysis() {
		return "dataAnalysis";
	}
	
	@GetMapping("form")
	String form() {
		return "form";
	}

	@Autowired
	UserView_Repository userView_Repository;

	@Autowired
	ObjectMapper objectMapper;
	
	
	
	@PostMapping("getUsers")
	@ResponseBody
	public Map getUsers(String userName){
		
		//String str="%userName%";
		List list = userView_Repository.findByAll();
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("total", 3);
		map.put("pageNumber", 1);
		map.put("rows", list);
		return map;
	}
	@GetMapping("userDetail/{uniqueid}")
	String userDetail(Model model, @PathVariable String uniqueid) {
		UserViewModel entity = userView_Repository.findOneByUserId(uniqueid);
		model.addAttribute("uniqueid", uniqueid);
		model.addAttribute("name", entity.getUserName());
		model.addAttribute("department", entity.getDeptName());
		model.addAttribute("gender", entity.getGender());
		model.addAttribute("station", entity.getJob());
		model.addAttribute("code", entity.getCode());
		model.addAttribute("skilllevel", entity.getSkillLevel());
		

		return "details";
	}

	@GetMapping("getFakeData")
	@ResponseBody
	String getFakeJson() {
		return "{\n" + "  \"swagger\": \"2.0\",\n" + "  \"info\": {\n" + "    \"description\": \"描述:主数据API\",\n"
				+ "    \"version\": \"1.0\",\n" + "    \"title\": \"529数据中心 RESTful APIs\",\n"
				+ "    \"termsOfService\": \"team服务url地址http://xxxx.com\",\n" + "    \"contact\": {\n"
				+ "      \"name\": \"Allen\"\n" + "    }\n" + "  },\n" + "  \"host\": \"localhost:7777\",\n"
				+ "  \"basePath\": \"/\",\n" + "  \"tags\": [\n" + "    {\n"
				+ "      \"name\": \"master-data-controller\",\n" + "      \"description\": \"主数据管理接口\"\n" + "    },\n"
				+ "    {\n" + "      \"name\": \"plan-controller\",\n" + "      \"description\": \"计划数据接口\"\n"
				+ "    },\n" + "    {\n" + "      \"name\": \"produce-controller\",\n"
				+ "      \"description\": \"制造数据接口\"\n" + "    },\n" + "    {\n"
				+ "      \"name\": \"quality-controller\",\n" + "      \"description\": \"质量数据接口\"\n" + "    },\n"
				+ "    {\n" + "      \"name\": \"material-controller\",\n" + "      \"description\": \"物料数据接口\"\n"
				+ "    },\n" + "    {\n" + "      \"name\": \"design-controller\",\n"
				+ "      \"description\": \"设计相关数据接口\"\n" + "    },\n" + "    {\n"
				+ "      \"name\": \"other-controller\",\n" + "      \"description\": \"其它服务接口\"\n" + "    }\n"
				+ "  ],\n" + "  \"paths\": {\n" + "    \"/DesignData/3D-Design\": {\n" + "      \"get\": {\n"
				+ "        \"tags\": [\n" + "          \"design-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"三维模型设计接口\",\n" + "        \"operationId\": \"Design3DUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/DesignData/Craft\": {\n" + "      \"get\": {\n"
				+ "        \"tags\": [\n" + "          \"design-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"工艺设计接口\",\n" + "        \"operationId\": \"getCraftUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/addDepts\": {\n" + "      \"post\": {\n"
				+ "        \"tags\": [\n" + "          \"master-data-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"增加部门主数据\",\n" + "        \"operationId\": \"addDeptsUsingPOST\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n"
				+ "          {\n" + "            \"in\": \"body\",\n" + "            \"name\": \"Dept\",\n"
				+ "            \"description\": \"部门实体dept\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"$ref\": \"#/definitions/Dept\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"201\": {\n" + "            \"description\": \"Created\"\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/addProducts\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"增加产品主数据\",\n"
				+ "        \"operationId\": \"addProductsUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"Dept\",\n"
				+ "            \"description\": \"产品实体user\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"$ref\": \"#/definitions/Product\"\n"
				+ "            }\n" + "          }\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/addUsers\": {\n" + "      \"get\": {\n"
				+ "        \"tags\": [\n" + "          \"master-data-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"增加人员主数据\",\n" + "        \"operationId\": \"addUsersUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n"
				+ "          {\n" + "            \"in\": \"body\",\n" + "            \"name\": \"Dept\",\n"
				+ "            \"description\": \"人员实体user\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"$ref\": \"#/definitions/User\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/deleteDepts\": {\n"
				+ "      \"post\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"删除部门主数据\",\n"
				+ "        \"operationId\": \"deleteDeptsUsingPOST\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"部门唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"201\": {\n" + "            \"description\": \"Created\"\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/deleteProducts\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"删除产品主数据\",\n"
				+ "        \"operationId\": \"deleteProductsUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"产品唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/deleteUsers\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"删除人员主数据\",\n"
				+ "        \"operationId\": \"deleteUsersUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"人员唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/getDepts\": {\n" + "      \"get\": {\n"
				+ "        \"tags\": [\n" + "          \"master-data-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"获取部门主数据\",\n" + "        \"operationId\": \"getDeptsUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/getProducts\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"获取产品主数据\",\n"
				+ "        \"operationId\": \"getProductsUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/getUsers\": {\n" + "      \"get\": {\n"
				+ "        \"tags\": [\n" + "          \"master-data-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"获取人员主数据\",\n" + "        \"operationId\": \"getUsersUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/updateDepts\": {\n"
				+ "      \"post\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"更新部门主数据\",\n"
				+ "        \"operationId\": \"updateDeptsUsingPOST\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"部门唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"201\": {\n" + "            \"description\": \"Created\"\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/updateProduct\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"更新产品主数据\",\n"
				+ "        \"operationId\": \"updateProductUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"产品唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MasterData/updateUser\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"master-data-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"更新人员主数据\",\n"
				+ "        \"operationId\": \"updateUserUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"人员唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MaterialData/Add-MaterialData\": {\n"
				+ "      \"post\": {\n" + "        \"tags\": [\n" + "          \"material-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"物料数据-增加物料\",\n"
				+ "        \"operationId\": \"addMaterialDataUsingPOST\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"201\": {\n" + "            \"description\": \"Created\"\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MaterialData/MaterialData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"material-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"物料数据-现有物料清单\",\n"
				+ "        \"operationId\": \"getMaterialUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/MaterialData/Product-MaterialData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"material-controller\"\n"
				+ "        ],\n" + "        \"summary\": \"物料数据-型号所需物料\",\n"
				+ "        \"operationId\": \"getMaterialByProductsUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/OtherServiceData/OneLogin\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"other-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"单点登录\",\n" + "        \"operationId\": \"OneLoginUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/OtherServiceData/PermissionManage\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"other-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"授权管理\",\n" + "        \"operationId\": \"PermissionManageUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/PlanData/Dept-IndustryPlans\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"plan-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"厂级计划-部门维度\",\n"
				+ "        \"operationId\": \"getIndustryPlansByDeptUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"部门唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/PlanData/Dept-WorkShopPlans\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"plan-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"车间级计划-部门维度\",\n"
				+ "        \"operationId\": \"getWorkShopPlansByDeptUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"deptid\",\n"
				+ "            \"description\": \"部门唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/PlanData/User-IndustryPlans\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"plan-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"厂级计划-人员维度\",\n"
				+ "        \"operationId\": \"getIndustryPlansByUserUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"userid\",\n"
				+ "            \"description\": \"用户唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/PlanData/User-WorkShopPlans\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"plan-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"车间级计划-人员维度\",\n"
				+ "        \"operationId\": \"getWorkShopPlansByUserUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"parameters\": [\n" + "          {\n"
				+ "            \"in\": \"body\",\n" + "            \"name\": \"userid\",\n"
				+ "            \"description\": \"用户唯一id\",\n" + "            \"required\": true,\n"
				+ "            \"schema\": {\n" + "              \"type\": \"string\"\n" + "            }\n"
				+ "          }\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/ProduceData/Type-ProduceData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"produce-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"加工数据-加工类型维度\",\n"
				+ "        \"operationId\": \"getProduceDataByTypeUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/ProduceData/User-ProduceData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"produce-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"加工数据-人员维度\",\n"
				+ "        \"operationId\": \"getProduceDataByUserUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/QualityData/Bad-QualityData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"quality-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"质量数据-不合格品\",\n"
				+ "        \"operationId\": \"getQualityDataByUnpassedUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/QualityData/Tech-QualityData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"quality-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"质量数据-技术问题\",\n"
				+ "        \"operationId\": \"getQualityDataByTechnologyQuestionUsingGET\",\n"
				+ "        \"consumes\": [\n" + "          \"application/json\"\n" + "        ],\n"
				+ "        \"produces\": [\n" + "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n"
				+ "          \"200\": {\n" + "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    },\n" + "    \"/QualityData/Type-QualityData\": {\n"
				+ "      \"get\": {\n" + "        \"tags\": [\n" + "          \"quality-controller\"\n" + "        ],\n"
				+ "        \"summary\": \"质量数据-检测记录\",\n"
				+ "        \"operationId\": \"getQualityDataByTypeUsingGET\",\n" + "        \"consumes\": [\n"
				+ "          \"application/json\"\n" + "        ],\n" + "        \"produces\": [\n"
				+ "          \"*/*\"\n" + "        ],\n" + "        \"responses\": {\n" + "          \"200\": {\n"
				+ "            \"description\": \"OK\",\n" + "            \"schema\": {\n"
				+ "              \"type\": \"string\"\n" + "            }\n" + "          },\n"
				+ "          \"401\": {\n" + "            \"description\": \"Unauthorized\"\n" + "          },\n"
				+ "          \"403\": {\n" + "            \"description\": \"Forbidden\"\n" + "          },\n"
				+ "          \"404\": {\n" + "            \"description\": \"Not Found\"\n" + "          }\n"
				+ "        }\n" + "      }\n" + "    }\n" + "  }\n" + "}";
	}
}
